﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Monitor.aspx.cs" Inherits="FtpWebRole.Monitor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Performance</h2>
    <table>
        <tr>
            <td><asp:Label runat="Server" Text="CPU Usage:" /></td>
            <td style="padding-left: 3pt;"><asp:Label ID="LblProcessorTime" runat="Server" /></td>
        </tr>
        <tr style="padding-top: 3pt;">
            <td><asp:Label runat="Server" Text="Memory:" /></td>
            <td style="padding-left: 3pt;" colspan="2">
                <asp:Label ID="LblMemAvailable" runat="Server" />
                <asp:Label ID="LblMemCommitted" runat="Server" />
            </td>
        </tr>
        <tr>
            <td valign="top"" style="padding-top: 3pt;"><asp:Label runat="Server" Text="Network:" /></td>
            <td><asp:Table ID="TblNetwork" runat="server"></asp:Table></td>
        </tr>
    </table>

    <h2>Live Connection</h2>
    <table>
        <tr><td>
            <asp:Label ID="LblCnnt" runat="server"></asp:Label>
        </td></tr>
    </table>
    <asp:GridView ID="GrdvCnnt" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="IP" HeaderText="IP" />
            <asp:BoundField DataField="Port" HeaderText="Port" />    
            <asp:BoundField DataField="TimeStamp" HeaderText="Created" />
        </Columns>
    </asp:GridView>
</asp:Content>
